﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <title>PowerWMS</title>
    <link id="mycss" href="style/zh/1/menu_css.css" type="text/css" rel="stylesheet" />
      <script src="Js/jquery-1.3.1.js"type="text/javascript"></script>
    <script src="Js/jquery.simplemodal.js"type="text/javascript"></script>
    <script src="Js/Ajax.js"type="text/javascript"></script>
    <script src="Js/InitPage.js" type="text/javascript"></script>
    <script type="text/javascript">
    
        function NameAuthentication()
         {
            var Url = "Common/MenuAjax.aspx?TYPE=GET&WhName="+document.getElementById('hidWhName').value+"&IsGlobal="+document.getElementById('hidGlobal').value+"&WhDbDesc="+encodeURI(document.getElementById('hidWhDbDesc').value);
            XmlHttp.sendReq(Url, handleStateChange);
        }
        function handleStateChange(xmlhttp) 
        {
            document.getElementById('MenuDiv').innerHTML = xmlhttp.responseText;
            if(document.getElementById('hidWhName').value.length != 0)
            {
                 self.parent.frames["main"].location.href = "default.htm";
                 self.parent.frames["banner"].location.href = "WebForm_Logo.aspx";
                      parent.frames['border'].document.getElementById('hdnType').value = "0";    
                self.parent.frames["border"].document.getElementById('hdnClass').vaule=0;
                self.parent.frames["border"].document.getElementById('flag').className = "switch";          
                self.parent.frames["banner"].DivClose()
                self.parent.frames["main"].DivClose();              
              self.parent.frames['banner'].hideshow();
               
            }
            document.getElementById('hidClickName').value = "";
        }
        function MenuClick(Name,type) 
        {
            if (document.getElementById(Name + '_div').style.display == 'none') 
            {
                $(document.getElementById(Name + '_div')).show("fast");
                document.getElementById(Name + '_img').className='sub';
                if (document.getElementById('HidName').value != "" && document.getElementById('HidName').value != Name && document.getElementById('HidType').value == type) {
                    $(document.getElementById(document.getElementById('HidName').value + '_div')).toggle('fast');
                     document.getElementById(document.getElementById('HidName').value + '_img').className='add';
                }
                document.getElementById('HidName').value = Name
                document.getElementById('HidType').value = type
            }
            else 
            {
                $(document.getElementById(Name + '_div')).toggle("fast");
                document.getElementById(Name + '_img').className = 'add';             
                 document.getElementById('HidName').value = "";
            }
        }
        function MenuMouseout(Name) 
        {          
         if(document.getElementById('hidClickName').value != Name + '_tr')
         {
           document.getElementById(Name + '_tr').className='';
         }
        }
        function MenuMousemove(Name) 
        { 
          document.getElementById(Name + '_tr').className = 'menu_rowbg';   
        }
        function UpdateLoad(WhName,IsGlobal,WhDbDesc)
        {         
          document.getElementById('hidWhName').value=WhName;
          document.getElementById('hidGlobal').value =IsGlobal;
          document.getElementById('hidWhDbDesc').value =WhDbDesc;
          NameAuthentication();
          
          document.getElementById("HidName").value="";          
          document.getElementById("HidType").value="";
          document.getElementById("hidClickName").value="";
        }
        function ClassClick(Name)
        {
         if(document.getElementById('hidClickName').value.length != 0)
         {
            document.getElementById(document.getElementById('hidClickName').value).className = '';
         }       
          document.getElementById(Name + '_tr').className = 'menu_rowbg';   
          document.getElementById('hidClickName').value = Name + '_tr';
      }
     
</script>

</head>
<body class="menubody" onload=' NameAuthentication();'  oncontextmenu = "return false">
  <form id="form1" runat="server">
    <div id="FormMenu">      
    <div  id="MenuDiv"  class="menu" >
    </div>
    <input id="HidName" type="hidden" />
       <input id="hidWhName" type="hidden" />
        <input id="hidGlobal" type="hidden" />
         <input id="hidWhDbDesc" type="hidden" />
          <input id="HidType" type="hidden" />
           <input id="hidClickName" type="hidden" />          
        <div style='display:none; width:100%' id="WindowDiv">
           </div>
               </div>
    </form>
</body>
</html>
